const config = require('./config');
const solChain = require('./SolChain');
const {
    getKeyPairUser1, getKeyPairUser2
} = require('./MyKeypair');
const t = async () => {
    let lastHeight = await solChain.getBlockHeight();
    console.log('height: ', lastHeight);
    let block = await solChain.getBlock(lastHeight);
    console.log('block: ', block);
}
const balance  = async () => {
    let pk1 = await getKeyPairUser1();
    let balance1 = await solChain.getBalance(pk1.publicKey);
    console.log('user1 balance: ', balance1);

    let pk2 = await getKeyPairUser2();
    let balance2 = await solChain.getBalance(pk2.publicKey);
    console.log('user2 balance: ', balance2);

}
//t();
balance();